//
//  FourthDetailCollectionViewCell.m
//  A段项目
//
//  Created by RAMBO on 15/4/16.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "FourthDetailCollectionViewCell.h"

#define X 30
#define F 0
#define BACKGROUNDCOLOR [UIColor colorWithRed:F green:F blue:F alpha:F]
#define WIDTH 375
#define HEIGHT 250
@implementation FourthDetailCollectionViewCell
- (void)dealloc
{
    
    
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.imageScroll = [[UIWebView alloc] initWithFrame:CGRectMake(0, 50, WIDTH, HEIGHT)];
        [_imageScroll setBackgroundColor:[UIColor whiteColor]];
        [self.contentView addSubview:_imageScroll];
        [_imageScroll release];
//        _imageScroll.showsHorizontalScrollIndicator = NO;
        
        self.scro = [[UIView alloc] initWithFrame:CGRectMake(0, HEIGHT, WIDTH, 675 - HEIGHT - 64)];
        [self.contentView addSubview:_scro];
        [_scro release];
        [_scro setBackgroundColor:[UIColor whiteColor]];
        
        UILabel *source = [[UILabel alloc] initWithFrame:CGRectMake(X, 10, 200, 13)];
        [source setFont:[UIFont systemFontOfSize:13]];
        [_scro addSubview:source];
        [source release];
        
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(X, 20, 270, 40)];
        [_titleLabel setFont:[UIFont boldSystemFontOfSize:20]];
        [_scro addSubview:_titleLabel];
        [_titleLabel release];
        
        self.authorLabel = [[UILabel alloc] initWithFrame:CGRectMake(X, 60, 250, 15)];
        [_authorLabel setFont:[UIFont systemFontOfSize:15]];
        [_scro addSubview:_authorLabel];
        [_authorLabel release];
        
        UILabel *lineLabel = [[UILabel alloc] initWithFrame:CGRectMake(X-2, 80, 335, 20)];
        [_scro addSubview:lineLabel];
        [lineLabel release];
        [lineLabel setFont:[UIFont systemFontOfSize:20]];
        [lineLabel setText:@" _______________________________ "];
        
        self.contentWebView = [[UIWebView alloc] initWithFrame:CGRectMake(X, 110, WIDTH - X - X, 330)];
        [_contentWebView setBackgroundColor:BACKGROUNDCOLOR];
        [_scro addSubview:_contentWebView];
        [_contentWebView release];
        
    }
    
    return self;
}

@end
